Quartz: gtk_drag_highlight_draw(): Set the GtkStyleContext to the widget.
authorJohn Ralls <jralls@ceridwen.us>
Sun, 11 Sep 2011 17:48:58 +0000 (10:48 -0700)
committerJohn Ralls <jralls@ceridwen.us>
Sun, 11 Sep 2011 17:49:54 +0000 (10:49 -0700)
Otherwise there's no actual context to save and restore.

gtk/gtkdnd-quartz.c

index 49db14e91e0a185e1263f388668060625e475ecb..b577bb6f105ae4a6d808d6c2b70b87643c773c0f 100644 (file)
@@ -348,7 +348,7 @@ gtk_drag_highlight_draw (GtkWidget *widget,
 {
   int width = gtk_widget_get_allocated_width (widget);
   int height = gtk_widget_get_allocated_height (widget);
-  GtkStyleContext *context;
+  GtkStyleContext *context = gtk_widget_get_style_context (widget);
 
   gtk_style_context_save (context);
   gtk_style_context_add_class (context, GTK_STYLE_CLASS_DND);